package com.hiyu.dome3;

import java.util.Scanner;
public class java05 {
    public static void main(String[] args) {
        //调用方法
        playGlam();
        playGlam();

    }

    //定义一个方法
    public static void playGlam() {
        System.out.println("选人物");
        System.out.println("准备开战");
        System.out.println("对线");
        System.out.println("送人头");

    }

}

public class java05{
    public static void main(String[] args) {
        information();
    }
    public static void information(){
        System.out.println("性别");
        System.out.println("18岁");
    }
}

public class java05{
    public static void main(String[] args) {
        getSun();
    }
    public static void getSun(){
        int num1 =10;
        int num2 = 20;
        int result = num1+num2;
        System.out.println(result);
    }
}

public class java05{
    public static void main(String[] args) {
        getSum(10,20);
    }
    public static void getSum(int num1,int num2){
        int result = num1+num2;
        System.out.println(result);
    }
}

public class java05{
    public static void main(String[] args) {
        getLength(5.2,1.3);
    }
    public static void getLength(double len,double width){
        double result = (len+width)*2;
        System.out.println(result);
    }
}

public class java05{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int len = sc.nextInt();
        erea(len);
    }
    public static void erea(int x){
        System.out.println(x*x*3.14);
    }
}

public class java05{
    public static void main(String[] args) {
        int sum = getSum(10,20,30);

        System.out.println(sum);

        System.out.println(getSum(10,20,30));
        int sum1 = getSum(10,20,30);
        int sum2 = getSum(20,30,40);
        int sum3 = getSum(20,30,40);
        System.out.println(sum1+sum2+sum3);
    }
    public static int getSum(int num1,int num2,int num3){
        int result = num1+num2+num3;
        return result;
    }
}

